package pod

import (
	"kubernate-server/service"

	"github.com/gin-gonic/gin"
)

type K8sPodRouter struct {
}

func (*K8sPodRouter) InitK8SPodRouter(r *gin.Engine) {
	group := r.Group("/k8s/pod")
	group.GET("/podDetail/:nameSpace/:podName", service.ApiGroupApp.GetPodDetail)
	group.GET("/getPodList", service.ApiGroupApp.GetPodList)
	group.DELETE("/delPod/:nameSpace/:podName", service.ApiGroupApp.DeletePod)
	group.GET("/createPod/:nameSpace/:podName", service.ApiGroupApp.CreatePod)
	group.GET("/updatePod/:nameSpace/:podName", service.ApiGroupApp.UpdatePod)
}
